﻿using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using FrameWorkSong;

public class BugDemo : MonoBehaviourSimplify
{
    public GameObject[] gameObjects;
    DrawGizmos drawGizmos ;

    public override void OnBeforeDestroy() {}
    int I = 0;
    // Start is called before the first frame update

    // Update is called once per frame
    void Update()
    {
        if (gameObjects.Length>=2)
        {
            List<Vector3> vector3s = gameObjects.Select(point => point.transform.position).ToList();
            DebugLine(vector3s);
        }
        if (Input.GetKeyDown(KeyCode.K))
        {
            I++;
            Debug.Log("K"+I);
        }
    }
}
